import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'admin/SysStudentStatus/add',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'admin/SysStudentStatus/'+ids,
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'admin/SysStudentStatus/edit',
    method: 'put',
    data
  })
}

/**
 * 获取用户绑定数据
 * @param tenantId
 * @returns {*}
 */
export function getDepartments() {
  return request({
    url: 'admin/SysStudentStatus/get-department',
    method: 'get',
  })
}

/**
 * 通过id获取数据
 * @param id
 * @returns {*}
 */
export function getById(id) {
  return request({
    url: 'admin/SysStudentStatus/get-by-id/'+id,
    method: 'get',
    data:id
  })
}



export default { add, edit, del }
